package com.source.lightfowl.basedata.entity;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.web.bind.annotation.CrossOrigin;

import javax.persistence.*;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @Author: 谢春泳
 * @Description: 禽类信息表
 * @Date: 2020/1/10 12:39
 */
@Entity
@Data
@Table(name = "poultry_category")
public class PoultryCategory {
    @Id
    @GenericGenerator(name = "PoultryCategory-uuid", strategy = "uuid")
    @GeneratedValue(generator = "PoultryCategory-uuid")
    private String id;
    private String number;
    private String name;
    private String detail;
    private String parentId;
    private String slaughterHouseId;
    private String createBy;
    private LocalDateTime createDate;

}
